package com.dubbo.lian.cms.modules.app;
 import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
 import java.io.Serializable;
 /**
 * <p>
 * 空气检测仪设置
 * </p>
 *
 * @author lian
 * @since 2016-12-22
 */
@TableName("iaq_instrument_config")
public class IaqInstrumentConfig extends Model<IaqInstrumentConfig> {
 	private static final long serialVersionUID = 1L;
 	/**
	 * mac地址
	 */
	@TableId
	private String mac;
	/**
	 * 地区
	 */
	private String city;
	/**
	 * PM25警戒值
	 */
	@TableField(value="pm25_alarm")
	private Integer pm25Alarm;
	/**
	 * 甲醛警戒值
	 */
	@TableField(value="formaldehyde_alam")
	private Integer formaldehydeAlam;
	/**
	 * 是否开蜂鸣器
	 */
	@TableField(value="is_voice")
	private Integer isVoice;
 	@Override
	public String toString() {
		return "IaqInstrumentConfig{" +
				"mac='" + mac + '\'' +
				", city='" + city + '\'' +
				", pm25Alarm=" + pm25Alarm +
				", formaldehydeAlam=" + formaldehydeAlam +
				", isVoice=" + isVoice +
				'}';
	}
 	public String getMac() {
		return mac;
	}
 	public void setMac(String mac) {
		this.mac = mac;
	}
 	public String getCity() {
		return city;
	}
 	public void setCity(String city) {
		this.city = city;
	}
 	public Integer getPm25Alarm() {
		return pm25Alarm;
	}
 	public void setPm25Alarm(Integer pm25Alarm) {
		this.pm25Alarm = pm25Alarm;
	}
 	public Integer getFormaldehydeAlam() {
		return formaldehydeAlam;
	}
 	public void setFormaldehydeAlam(Integer formaldehydeAlam) {
		this.formaldehydeAlam = formaldehydeAlam;
	}
 	public Integer getIsVoice() {
		return isVoice;
	}
 	public void setIsVoice(Integer isVoice) {
		this.isVoice = isVoice;
	}
 	@Override
	protected Serializable pkVal() {
		return this.mac;
	}
 }
